From: Colin Walters Date: Thu, 30 Jun 2011 18:19:20 +0000 (-0400) Subject: configure: Depend on gnome-bluetooth 3.1.0, fix linking issue X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8120 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f71afa92480ca365c74b0a9160e44febc6eedbaa;p=gnome-shell.git configure: Depend on gnome-bluetooth 3.1.0, fix linking issue Most importantly, the new variables include an rpath for the gnome-bluetooth directory which fixes a linking problem; introspetion needs to be able to find the library while running the introspected binary at build time. Also, this removes some hardcoding in the configure script. --- diff --git a/configure.ac b/configure.ac index f722c1392..e42c027e3 100644 --- a/configure.ac +++ b/configure.ac @@ -126,9 +126,9 @@ PKG_CHECK_MODULES(GVC, libpulse libpulse-mainloop-glib gobject-2.0) PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 0.1.7) AC_MSG_CHECKING([for bluetooth support]) -PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 2.90.0], - [BLUETOOTH_DIR=`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0`/gnome-bluetooth - BLUETOOTH_LIBS="-L'$BLUETOOTH_DIR' -lgnome-bluetooth-applet" +PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 3.1.0], + [BLUETOOTH_DIR=`$PKG_CONFIG --variable=applet_libdir gnome-bluetooth-1.0` + BLUETOOTH_LIBS=`$PKG_CONFIG --variable=applet_libs gnome-bluetooth-1.0` AC_SUBST([BLUETOOTH_LIBS],["$BLUETOOTH_LIBS"]) AC_DEFINE_UNQUOTED([BLUETOOTH_DIR],["$BLUETOOTH_DIR"],[Path to installed GnomeBluetooth typelib and library]) AC_DEFINE([HAVE_BLUETOOTH],[1],[Define if you have libgnome-bluetooth-applet])